import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);

const  state={ //创建数据仓库
	urls:'http://192.168.1.160:201',
	MembersID:'',
	showType:'',
	isFooters:true,
	content_all:false

}

const mutations={ //方法实现修改数据仓库
	updata(state,url){
		state.urls=url
	},
	upisFooters(state){ 
		state.isFooters=false
	},
	upContent_all(state){ 
		state.content_all=true
	}

}


const getters={//过滤数据仓库
	updata(state,num){
		state.urls=state.urls+'/'+num
	}
} 
const actions={ //异步实现修改数据仓库
	addActions(context){
		 context.commit('updata')
	}

}

 
export default new Vuex.Store({
	state,
	mutations,
	getters,
	actions
})